package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_liveshow_time", desc = "直播日志", autoSave = true, uploadCk = true)
public class LogLiveShowTime extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "直播开始时间")
    private Date liveShowStartTime;

    @FieldTypeAnnotation(desc = "直播时长，单位ms")
    private long liveShowTime;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogLiveShowTime(long userId, Date liveShowStartTime, long liveShowTime) {
        this.userId = userId;
        this.liveShowStartTime = liveShowStartTime;
        this.liveShowTime = liveShowTime;
        logTime = new Date();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public Date getLiveShowStartTime() {
        return liveShowStartTime;
    }

    public void setLiveShowStartTime(Date liveShowStartTime) {
        this.liveShowStartTime = liveShowStartTime;
    }

    public long getLiveShowTime() {
        return liveShowTime;
    }

    public void setLiveShowTime(long liveShowTime) {
        this.liveShowTime = liveShowTime;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
